package com.ifp.opengate.boot.bean.config;

/**
 * 密钥安全配置
 * 
 * @author 灭霸 2018-11-12
 *
 */
public class AppSecretConfigBean {
    /**
     * appId
     */
    private String appId;
    /**
     * 密钥失效时间
     */
    private long invalidTime;
    /**
     * 密钥A
     */
    private String appSecretAkey;
    /**
     * 密钥B
     */
    private String appSecretBkey;
    /**
     * 密钥A状态：0-未使用，1-已使用，2-已失效
     */
    private String appSecretAkeyStatus;
    /**
     * 密钥B状态：0-未使用，1-已使用，2-已失效
     */
    private String appSecretBkeyStatus;

    /**
     * 是否可操作。
     */
    private boolean operate;

    public AppSecretConfigBean(String appId, long invalidTime, String appSecretAkey, String appSecretBkey,
        String appSecretAkeyStatus, String appSecretBkeyStatus) {
        this.invalidTime = invalidTime;
        this.appSecretAkey = appSecretAkey;
        this.appSecretBkey = appSecretBkey;
        this.appSecretAkeyStatus = appSecretAkeyStatus;
        this.appSecretBkeyStatus = appSecretBkeyStatus;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public long getInvalidTime() {
        return invalidTime;
    }

    public void setInvalidTime(long invalidTime) {
        this.invalidTime = invalidTime;
    }

    public String getAppSecretAkey() {
        return appSecretAkey;
    }

    public void setAppSecretAkey(String appSecretAkey) {
        this.appSecretAkey = appSecretAkey;
    }

    public String getAppSecretBkey() {
        return appSecretBkey;
    }

    public void setAppSecretBkey(String appSecretBkey) {
        this.appSecretBkey = appSecretBkey;
    }

    public String getAppSecretAkeyStatus() {
        return appSecretAkeyStatus;
    }

    public void setAppSecretAkeyStatus(String appSecretAkeyStatus) {
        this.appSecretAkeyStatus = appSecretAkeyStatus;
    }

    public String getAppSecretBkeyStatus() {
        return appSecretBkeyStatus;
    }

    public void setAppSecretBkeyStatus(String appSecretBkeyStatus) {
        this.appSecretBkeyStatus = appSecretBkeyStatus;
    }

    public boolean isOperate() {
        return operate;
    }

    public void setOperate(boolean operate) {
        this.operate = operate;
    }
}
